<?php
session_start();
function DoLogin($email, $password)
{
	$_SESSION['User'] = array('name'=>$email);
	return false;	
}
function IsLoggedIn()
{
		return (GetCurrentUser != null);
}
function GetCurrentUser()
{
		return $_SESSION['User'];
}
function RequireLogin()
{
	if(!IsLoggedIn())
	{
		header("Location: ../accounts/login.php");
		die;	
	}
}